package ldh.im.monitor;

import ldh.im.fxbase.InitDb;
import ldh.im.fxbase.util.DbUtil;

import java.sql.SQLException;

public class MonitorInitDb extends InitDb {

    protected void checkOnlyOne() throws SQLException {
        DbUtil.transaction((queryRunner, connection) -> {
            String sql = "select count(1) from im_monitor_user";
            return queryRunner.execute(connection, sql);
        });
    }
}
